﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="Up_document.aspx.cs" Inherits="WEB.T_document.Up_document" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 13px;
        }
        .style2
        {
            height: 30px;
        }
        .style3
        {}
        .style4
        {
            width: 314px;
            height: 30px;
        }
        .style5
        {
            width: 13px;
            height: 30px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    单证录入 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
        <tr>
            <td align="center">
                <table style="width: 695px; height: 617px;">
                    <tr height="30px">
                        <td class="style1" align="left" colspan="4" valign="top">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4" align="right" valign="top">
                            </td>
                        <td colspan="2" class="style2">
                            </td>
                        <td class="style5">
                            </td>
                    </tr>
                    <tr height="30px">
                        <td align="right" valign="top" colspan="2">
                             &nbsp;</td>
                        <td align="left" valign="top" colspan="2">
                             <asp:Label ID="Label4" runat="server" Visible="False"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2" align="right" valign="top" colspan="2">
                           单证模板:</td>
                        <td class="style2" align="left" valign="top" colspan="2">
                          <asp:DropDownList ID="DDLdocType" runat="server" Height="22px" Width="144px" 
                                AutoPostBack="True" 
                                onselectedindexchanged="DDLdocType_SelectedIndexChanged">
                            </asp:DropDownList>
                        
                            <asp:Label ID="lb_docNum" runat="server" ForeColor="#009933"></asp:Label>
                        
                        </td>
                    </tr>
                    <tr height="30px">
                        <td align="right" valign="top" colspan="2">
                            上传的文件是:</td>
                        <td align="left" valign="top" colspan="2">
                            <asp:FileUpload ID="WJFileUp" runat="server" Height="20px" Width="228px" />
                            </td>
                    </tr>
                    <tr>
                        <td align="right" valign="top" colspan="2">
                            上传的单证名称:
                        </td>
                        <td align="left" valign="top">
                            <asp:GridView ID="GridView1" runat="server" Height="25px" Width="193px" 
                                AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" 
                                BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                                GridLines="Vertical" onrowdatabound="GridView1_RowDataBound">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="codename" HeaderText="单证名称" />
                                    <asp:TemplateField>             
                                     <ItemTemplate>
                                        <asp:CheckBox ID="cbDoco" runat="server" />
                                     </ItemTemplate>
                                     </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="#CCCC99" />
                                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                <RowStyle BackColor="#F7F7DE" />
                                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#FBFBF2" />
                                <SortedAscendingHeaderStyle BackColor="#848384" />
                                <SortedDescendingCellStyle BackColor="#EAEAD3" />
                                <SortedDescendingHeaderStyle BackColor="#575357" />
                            </asp:GridView>
                            </td>
                    </tr>
                    <td colspan="3" class="style6">
                        <div class="descrption" align="left">
                            <asp:Label ID="Label2" runat="server" Text="<font color=#0066CC>--备注：</br>--黄绿色行表示已上传</br>--上传的文件的大小不可以超过<font color='red'>150M</font></br>--<font color=#0066CC>请以后缀名为</font><font color='red'>RAR、PDF和JPG上传</font><font color=#0066CC></br>--</font><font color='#0066CC'>最多能上传<font color='red'>四</font>次，超过<font color='red'>四</font>次将无法上传</font><font color=#0066CC></font>">
                            </asp:Label>
                        </div>
                    </td>
                    <tr>
                        <td align="center" class="style3" colspan="3">
                            &nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="Upbtn" runat="server" OnClick="bt_UP_Click" Text="点击上传" 
                                CssClass="Submit_yellowbig" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
